public class Test {
    public static void main(String[] args) {
        int[][] grid = new int[][] {{0},{1},{1},{0},{0}};
        Solution solution = new Solution();
        System.out.println(solution.numEnclaves(grid));
    }
}
